package com.wulian.common.constants;

/**
 * 
* @ClassName: CommonConstants 
* @Description: TODO(公共常量) 
* @author 马志豪
* @date 2019年9月10日 下午2:48:59 
*
 */
public class CommonConstants {
    /**
     * 用户信息常量
     */
    public static final String USER_INFO = "userInfo";
    
    /**
     * 获取header中token的常量
     */
    public static final String USER_TOKEN = "userToken";

    /**
     * 获取header中token的常量
     */
    public static final String QUERY_TYPE = "queryType";

    /**
     * 存入redis的token前缀
     */
    public static final String USER_TOKEN_PREFIEX = "userToken:";
    
    /**
     * 存入redis的token前缀
     */
    public static final String VOICE_VIDEO_URL_ROOM_ID = "voiceVideoUrlRoomId:";
    
    /**
     * 存入redis的token前缀
     */
    public static final String VOICE_VIDEO_USER_ROOM_ID = "voiceVideoUserRoomId:";
    
    /**
     * 存入redis的token前缀
     */
    public static final String VOICE_VIDEO_TYPE_USER_ID = "voiceVideoTypeUserId:";
    
    /**
     * 存入redis的语音视频token前缀
     */
    public static final String VOICE_VIDEO_TOKEN = "voiceVideoToken:";
    
    /**
     * 存入redis的静态数据经过分组后的数据常量
     */
    public static final String DICT_LIST_GROUP_DATA = "dictListGroupData";
    
    /**
     * 存入redis的静态数据转为map后的数据常量
     */
    public static final String DICT_LIST_TO_MAP_DATA = "dictListToMapData";
    
    /**
     * 基础角色
     */
    public static final String BASE_ROLE = "ROLE_USER";
    
    /**
     * 默认保存code的前缀
     */
    public static final String DEFAULT_CODE_KEY = "DEFAULT_CODE_KEY";
    
    /**
     * 验证码文字大小
     */
    public static final String DEFAULT_IMAGE_FONT_SIZE = "30";
    
    /**
     * 默认生成图形验证码过期时间
     */
    public static final int DEFAULT_IMAGE_EXPIRE = 60;

    /**
     * 解析旧系统返回字符串失败，统一返回给前端字符串提示语
     */
    public static final String INCORRECT_ERROR = "登录名或密码错误!";
    
    /**
     * 删除
     */
	public static String STATUS_DEL = "1";
    /**
     * 正常
     */
	public static Integer STATUS_NORMAL = 0;

    /**
     * 锁定
     */
	public static String STATUS_LOCK = "1";

    /**
     * 菜单
     */
	public static String MENU = "0";

    /**
     * 按钮
     */
	public static String BUTTON = "1";

    /**
     * 删除标记
     */
	public static String DEL_FLAG = "del_flag";
    
    /**
     * 删除标记
     */
	public static Integer DEL_FLAG_TRUE = 1;
    
    /**
     * 删除标记
     */
	public static Integer DEL_FLAG_FALSE = 0;
	
	/**
     * 删除
     */
	public static String DEL_FLAG_YES ="1" ;
    
    /**
     * 未删除
     */
	public static String DEL_FLAG_NO = "0";
    
    /**
     * 默认版本号
     */
	public static Integer VERSION_NUM = 1;
	
	//默认的分页行数
	public static final String default_page_size = "10";
	
	//默认的分页页数
	public static final String default_page_current = "0";

    /**
     * 编码
     */
	public static String UTF8 = "UTF-8";

    /**
     * JSON 资源
     */
	public static String CONTENT_TYPE = "application/json; charset=utf-8";
	
	/**
	 * 监测对象类型
	 */
	public static final String MONITOR_OBJECT_TYPE = "monitor_object_type";

    /**这个不用了，已经放到数据库里了
     *
     * 初始密码
     */
	public static final String INIT_PASSWORD ="bohaiwulian";

    /**
     * 用户名登录失败次数（手机端用）
     */
    public static final String LOGIN_ERROR_NUM_NAME ="login_error_num_user_name";

    /**
     * 手机号登录失败次数（手机端用）
     */
    public static final String LOGIN_ERROR_NUM_PHONE ="login_error_num_phone";


    /**
     * 用户名登录失败次数（手机端用）
     */
    public static final String LOGIN_ERROR_NUM_NAME_LOCK ="login_error_num_user_name_lock";

    /**
     * 手机号登录失败次数（手机端用）
     */
    public static final String LOGIN_ERROR_NUM_PHONE_LOCK ="login_error_num_phone_lock";

    /**
     * 用户名登录失败次数（巡检端用）
     */
    public static final String INSPECTION_LOGIN_ERROR_NUM_NAME ="inspection_login_error_num_user_name";

    /**
     * 手机号登录失败次数（巡检端用）
     */
    public static final String INSPECTION_LOGIN_ERROR_NUM_PHONE ="inspection_login_error_num_phone";


    /**
     * 用户名登录失败次数（巡检端用）
     */
    public static final String INSPECTION_LOGIN_ERROR_NUM_NAME_LOCK ="inspection_login_error_num_user_name_lock";

    /**
     * 手机号登录失败次数（巡检端用）
     */
    public static final String INSPECTION_LOGIN_ERROR_NUM_PHONE_LOCK ="inspection_login_error_num_phone_lock";

    /**
     * 5分钟 以秒为单位
     */
    //public static final long MINUTE_SECOND_5 = 5*60;
    public static final long MINUTE_SECOND_5 = 60;
    /**
     * 阿里云发送短信用
     */
    //public static final String ACCESSKEYID = "LTAI4GFSQUGfmjo5dWrGW2WG";
    public static final String ACCESSKEYID = "LTAI4G5pu1QSULsKSw9BtyRP";
    /**
     * 阿里云发送短信用
     */
    //public static final String ACCESSKEYSECRET ="j2MolS4ugch0bKVuRTTC4cXOGMT2JG";
    public static final String ACCESSKEYSECRET ="j2MolS4ugch0bKVuRTTC4cXOGMT2JG";

    /**
     * 短信生效时间
     */
    public static final long SMS_TIME_OUT  = 3*60;

    /**
     * 短信签名
     */
    public static final String SIGNNAME = "渤海物联使用签名";

    /**
     * 短信模板
     */
    public static final String TEMPLATECODE ="SMS_189713675";
    /**
     * 区分用户是政府人员还是机构人员
     */
    public static final String USER_TYPE = "userType";
    /**
     * 省-政府人员独特拥有
     */
    public static final String PROVINCE = "province";

    /**
     *市-政府人员独特拥有
     */
    public static final String CITY = "city";

    /**
     *县-政府人员独特拥有
     */
    public static final String COUNTY = "county";

    /**
     *人员当前机构id及下辖机构Id
     */
    public static final String DEPTIDLIST = "deptIdList";

    /**
     *当前人员拥有的权限的项目
     */
    public static final String PROJECT_ID_LIST = "projectIdList";
    
    public static final String EARLY_WARING_COMMON = "earlyWaringCommon:";
    
    public static final String EARLY_WARING_ITEM = "earlyWaringItem:";
    
    //健康终端
    public static final Integer TERMINAL_TYPE_0 = 0;
    //手持设备
    public static final Integer TERMINAL_TYPE_1 = 0;
    //巡检设备
    public static final Integer TERMINAL_TYPE_2 = 0;
    //启用
    public static final Integer DEVICE_STATUS_0 = 0;
    //闲置
    public static final Integer DEVICE_STATUS_1 = 0;
    //离线
    public static final Integer DEVICE_STATUS_2 = 0;
    //电量>=80%
    public static final Integer DEVICE_ELECTRIC_0 = 0;
    //电量>=20%
    public static final Integer DEVICE_ELECTRIC_1 = 0;
    //电量<=20%
    public static final Integer DEVICE_ELECTRIC_2 = 0;
    //智能手表
    public static final String DEVICE_TYPE_NAME_0 = "智能手表";
    //智能手机
    public static final String DEVICE_TYPE_NAME_1 = "智能手机";
    //智能巡检
    public static final String DEVICE_TYPE_NAME_2 = "智能巡检";
    //工人
    public static final String WORK_TYPE_0 = "工人";
    //管理
    public static final String WORK_TYPE_1 = "管理";
    //巡检
    public static final String WORK_TYPE_2 = "巡检";
    //语音公告
    public static final Integer VOICE_TYPE_1 = 1;
    //事故报警
    public static final Integer VOICE_TYPE_2 = 2;
    
    //语音通话
    public static final String VOICE_VIDEO_TYPE_0 = "0";
    //紧急求助
    public static final String VOICE_VIDEO_TYPE_1 = "1";
    
    //是否主叫用户 1主叫 2被叫
    public static final String WHETHER_CALLING_PARTY_1 = "1";
    //是否主叫用户 1主叫 2被叫
    public static final String WHETHER_CALLING_PARTY_2 = "2";
    
    //人员花名册待审核
    public static final String AUDIT_RESULT_0 = "0";
    //人员花名册审核通过
    public static final String AUDIT_RESULT_1 = "1";
    //人员花名册审核不通过
    public static final String AUDIT_RESULT_2 = "2";
    
    //在岗状态0不是1是
    public static final String WHETHER_ONLINE_0 = "0";
    //在岗状态0不是1是
    public static final String WHETHER_ONLINE_1 = "1";
    
    //是否退场 0不是，1是
    public static final String WHETHER_EXIST_0 = "0";
    //是否退场 0不是，1是
    public static final String WHETHER_EXIST_1 = "1";
    
    //极光推送类型1人员录入
    public static final String IGUANG_PUSH_TYPE_1 = "1";
    //极光推送类型2健康预警
    public static final String IGUANG_PUSH_TYPE_2 = "2";
    //极光推送类型3跨越围栏
    public static final String IGUANG_PUSH_TYPE_3 = "3";
    //极光推送title文案
    public static final String JIGUANG_PUSH_TITLE = "渤海物联";
    //极光推送新成员加入文案
    public static final String JIGUANG_PUSH_CONTENT_0 = "您的通讯录添加了新的成员：${name}，个人详情信息可以在通讯录查看。";
    //极光推送健康预警文案
    public static final String JIGUANG_PUSH_CONTENT_1 = "${name}于${date}出现${index}${earlyWaringType}，请及时处理。";
    //极光推送跨越电子围栏文案
    public static final String JIGUANG_PUSH_CONTENT_2 = "${name}于${date}跨越电子围栏，请及时处理。";
    //极光推送新成员加入审核不通过文案
    public static final String JIGUANG_PUSH_CONTENT_3 = "您添加的人员${name}审核被拒绝，拒绝原因：${cause}";
    
    public static final String FACE_ACCTOKEN = "faceAccToken:";
    //暂定设备类型为设备名称
    public static final String DEVICE_NAME_0 = "移动设备";
    
    public final static String IMG_PATH_PREFIX = "/static/upload/imgs";
    /*request.setSysDomain("dysmsapi.aliyuncs.com");
		request.setSysVersion("2017-05-25");
		request.setSysAction("SendSms");
		request.putQueryParameter("RegionId", "cn-hangzhou");
		request.putQueryParameter("PhoneNumbers", "17611256779");
		request.putQueryParameter("SignName", "渤海物联使用签名");
		request.putQueryParameter("TemplateCode", "SMS_189713675");
		request.putQueryParameter("TemplateParam", "{\"code\":200}");*/

    //通行规则  1有车有货运单才可以通行  2 有车即可通行
    public final static String PASS_RULE =  "passRule";

    //临时车辆登记存储车辆信息
    public final static String TEMP_CAR_NUM_DEVICE =  "tempCarNumDevice";

    //未验证通过车牌信息
    public final static String WEI_YANZHENG_TONGGUO =  "weiYanZhengTongGuo";  // TEMP_CAR_NUM_DEVICE WEI_YANZHENG_TONGGUO这两个常量是为了解决临时车辆登记后手动开闸时
    //车牌号已经离开识别区域手动放行后车牌号为空，当手动放行时一体机识别车牌号为null或_无_时对比临时登记车牌号和验证失败车牌号是否相同，相同则取这个车牌号



    //排放量通行规则
    //public final static String REFRESH_RULE = "refreshRule";


}
